<%@page import="java.util.HashMap"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <%@ page import="Servlets.*, java.util.*" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>TICKET INFORMATION</title>
</head>
<body>
<%
String[] vals = null;
if(request.getParameter("result") != null)
{
	System.out.println("In ::: "+ request.getParameter("result"));
	vals = ((String)request.getParameter("result")).split("\\|");
}


String[] CustomerPers = null;
String[] CustomerTravelInfo = null;
if(vals.length != 0)
{
	CustomerPers = vals[0].split("\\$");
	CustomerTravelInfo = vals[1].split("\\$");
}

%>

<table align="center" width="90%" border="2">
<tr ><td></td></tr>
<tr align="center" bordercolor="red"><td>    Customer Personal Information     </td><td></td></tr>
<tr ><td></td></tr>
<tr><td>Id : <%=CustomerPers[0] %></td></tr>
<tr><td>FirstName : <%=CustomerPers[1] %></td></tr>
<tr><td>LastName : <%=CustomerPers[2] %></td></tr>
<tr><td>Address : <%=CustomerPers[3] %></td></tr>
<tr><td>DOB : <%=CustomerPers[9] %></td></tr>
<tr><td>City : <%=CustomerPers[4] %></td></tr>
<tr><td>State : <%=CustomerPers[7] %></td></tr>
<tr><td>Zip : <%=CustomerPers[8] %></td></tr>
<tr><td>Phone No. : <%=CustomerPers[5] %></td></tr>
<tr><td>eMail Id : <%=CustomerPers[6] %></td></tr>
<tr><td>Nationality : <%=CustomerPers[10] %></td></tr>
<tr><td>Passport : <%=CustomerPers[11] %></td></tr>
</table>

<br></br>
<br></br>

<table align="center" width="90%" border="2">
<tr ><td></td></tr>
<tr align="center" bordercolor="red"><td>    Customer Tours Information     </td><td></td></tr>
<tr ><td></td></tr>
<tr><th>Tour No. </th><th>Source</th><th>Destination</th><th>Dept Date</th><th>Arrival Date</th><th>Status</th></tr>
<%for(int i=0,count=1; i<CustomerTravelInfo.length; count++){ %>
<tr>
<td><%=count%> </td>
<td><%=CustomerTravelInfo[i++]%> </td>
<td><%=CustomerTravelInfo[i++]%> </td>
<td><%=CustomerTravelInfo[i++]%> </td>
<td><%=CustomerTravelInfo[i++]%> </td>
<td><%=CustomerTravelInfo[i++]%> </td>
</tr>
<%} %>
</table>


</body>
</html>